package org.example.conts;

import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;

/**
 * @author 李国树
 * @version 1.0
 * @Desc 支付常量
 * @date 2023/11/17 10:54
 */
public class AlipayConts {
    /**
     * 我们自己的私钥, todo 你需要修改为你自己的私钥
     */
    public static String MY_PRIVATE_KEY="MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCc0rN8CLBByuFRVUTof3+OgKXOUnWNnxD74ymIMc2ugfdy8nbT6qFifzJY5eoU/wPJ/LCwyL9PhdChP98rwmwzTFG/mzdlC7+DY29qSqbXTkczJ6bCIhu+k1R2a5/7xXVQMZzEVp0CuWZ1jYNRnhL6jLGx/C1laPdY76wyjp9gqdeC3QyzgLaYbvt+oE4/BcUxbeomndc3FWQTC3ldK6z7evIVM8CLU437HVjaV3/iBwafN6ux4PPY1UQjmiaw80hHQJKBoxgVcBgDpzjHPA8hR7WWHTqqQrFexbVDheMvebfCJMJxUtxMaAX3VzuXT5TBqTVBiR0Olj9h/jv/67EjAgMBAAECggEAHK0qxPORx3Yh3Y2KHDm0SYqcxy2s8Ui1Alp3rb/trIt3hD1yHS46dJhtzHO+ajh3qOfcJ3eOBCykCdh0JrxWrMq36CGp74BGdPAp33XnLFfUDTai97zk9eRa/YyQpKlm2lM4J27vJyBf6/8ElFgjgE1Z8QH8Cx82m7y38EbEPhiGZOkyw6Ny907nIQmKmuEJ6wNc6oPSNo8xIkTogYtRE6nuh/XemOny4n5gDGF3RKOeaLm9hWGuWRcBR419cBo3IgB2pxKFZ6nwtOf1hbAHQtitRc9022bdvBkWabuxXHKsHkixo4s3OydeGpoW4E08ysB+jkJhyCNWOZ2QrJbZAQKBgQDrYm3eqYMD1mj3MfwznCzloZ54pTWURfj3A0hWenrqKmVyXZnznTlYFFhbOKj5O6iQ8w8rCxKBjkwrTQOXKkXemUpAz+1mkDcBf1uTohdOT9euwrLJ8hECEN0tZ0rrc/LHk4/yPZeb07pziTEtHjPfskvjs0/XnK+SAKsW+sHryQKBgQCqjtdC9KrYH/m+6uACndA54N9WjKup8L0+jAtdiQ9hbbrgvq8xcSq0x/tH6WzTFIjGwSzP9yTW44rtHrteBKJSLUmH4K4/1DC0yi1YSvatRlSuVbUQceB8UH80vsqfuAXml2hh4nPt9tP/E73HgDKrUbrFG1zRAw1VmwGUOfrTiwKBgQCyIV78LlQTx2LQD2fIttvTO6ftrTkK6JksdbN8nlv+ce8ryWIEVmtbGKp0/kABvQAoEYjdDhgHK2TBMBsTfs45UtA6lCAYifLWk0b+RqBUh1+1xWoAIcx1P8Xh4lV0Md784dMBg1MEfgqP/LbWahDfrNJ5ku1NQior142iaknu4QKBgGJvjk1WaEPUMI+/fwoDiuncnwmUpn6uMoqmyOhy8i2I5xJO+03NwpgT0zLtxaENeOM9Gl/sg5aCPOwdkIXyprxG5ulFA0xTasjs5r7OhQ/8R2NWk+mpz6Xvz3rhopAL5Vvwho335HCyxCezfRRnKNc3lFOuNyNqX4fIrmCeFeWBAoGBAJPUMytUADRK9dY6aCx1bGlAqOJvXvd1zV3rET4WBVpxjXEo5IiuOtzMDORcoSF/UKO3DMv3fyHqySzNLlBwhq/lzpqI0wCKXsG/kfzczb4kxMzydNuL3qiXsVqpgAO1HCk/mdR6Bh2G7qExzATbTUighuU/44I+tOPSXQyZNZ7b";
    /**
     * 支付宝提供给我们的公钥,todo 你需要修改为你自己的支付宝公钥
     */
    public static String ALIPAY_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtZ3U0zVAYfssqMQDm9TzXJW5e53av5Gt+j2GCdUckgJGkFGsG1RdWGEcs38FFNxOwcnwEqR/DB68jAPl/ux2sRVV1p/1HIoQLZD0SazPb/0T1Rb+6M86hVIIsF0urL6+i/TrMamdBC5/dIRzPKiVsgGIQFSHUnVx0Di0XN5SpndmWCGjBi1HbpQAjwU1+TL3FWr9VGL7DNtAvKglTf93tyZWLS/4XOOpZMY/Pyrm9tmavRdiCmIzQvC6AkCDWupsCY7Opp/ickWX8qu+PjJ9/u9TebEuUrOkDfL6iNlpfekLlzx7y/VrV+ny7OUTz6yFi+ZoKDhk4k7BZw8BKoGrgQIDAQAB";
    /**
     * 支付宝沙箱环境网关
     */
    public static String ALIPAY_GATEWAY="https://openapi-sandbox.dl.alipaydev.com/gateway.do";

    /**
     * todo 你需要修改为你自己的appid
     */
    public static String APPID="9021000132607895";
    /**
     * todo 修改为你再沙箱环境配置的回调地址
     */
    public static String RETRUN_URL="http://localhost:8003/cloud-pay/pay/alipayCallback";

    public static  String CHARSET="UTF-8";
    /**
     * 签名方式
     */
    public static String SIGN_TYPE="RSA2";

    /**
     * 支付宝接口调用客户端
     */
    public static AlipayClient ALIPAY_CLIENT = new DefaultAlipayClient(AlipayConts.ALIPAY_GATEWAY,AlipayConts.APPID,AlipayConts.MY_PRIVATE_KEY,"json",AlipayConts.CHARSET,AlipayConts.ALIPAY_PUBLIC_KEY,AlipayConts.SIGN_TYPE);

}

 
